Court documents reveal shocking allegations of sexual harrassment on set and a social media smear campaign